home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / layer_info.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-09  |  3.4 KB  |  108 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ALayer_Info wrapper class                                                 *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_ALayer_Info_H
  12. #define ASAP_ALayer_Info_H
  13.  
  14. #include <New.h>
  15.  
  16. extern "C"
  17. {
  18.  #include <Proto/Layers.h>
  19. }
  20.  
  21. class AHook;
  22. class ALayer;
  23.  
  24. class ALayer_Info : public Layer_Info
  25. {
  26.  public:
  27.  inline void DisposeLayerInfo();
  28.  inline void operator delete (void *);
  29.  inline LONG FattenLayerInfo();
  30.  inline void InitLayers();
  31.  inline AHook * InstallLayerInfoHook(Hook * hook);
  32.  inline void LockLayerInfo();
  33.  inline void LockLayers();
  34.  inline static ALayer_Info * NewLayerInfo();
  35.  inline void * operator new(size_t);
  36.  inline void ThinLayerInfo();
  37.  inline void UnlockLayerInfo();
  38.  inline void UnlockLayers();
  39.  inline ALayer * WhichLayer(long x, long y);
  40. };
  41. //----------------------------------------------------------------------------
  42. void ALayer_Info::DisposeLayerInfo ()
  43. {
  44.  ::DisposeLayerInfo(this);
  45. }
  46. //----------------------------------------------------------------------------
  47. void ALayer_Info::operator delete (void *li)
  48. {
  49.  ((ALayer_Info *) li)->DisposeLayerInfo();
  50. }
  51. //----------------------------------------------------------------------------
  52. LONG ALayer_Info::FattenLayerInfo ()
  53. {
  54.  return ::FattenLayerInfo(this);
  55. }
  56. //----------------------------------------------------------------------------
  57. void ALayer_Info::InitLayers ()
  58. {
  59.  ::InitLayers(this);
  60. }
  61. //----------------------------------------------------------------------------
  62. AHook * ALayer_Info::InstallLayerInfoHook (Hook * hook)
  63. {
  64.  return (AHook *) ::InstallLayerInfoHook(this, hook);
  65. }
  66. //----------------------------------------------------------------------------
  67. void ALayer_Info::LockLayerInfo ()
  68. {
  69.  ::LockLayerInfo(this);
  70. }
  71. //----------------------------------------------------------------------------
  72. void ALayer_Info::LockLayers ()
  73. {
  74.  ::LockLayers(this);
  75. }
  76. //----------------------------------------------------------------------------
  77. ALayer_Info * ALayer_Info::NewLayerInfo ()
  78. {
  79.  return (ALayer_Info *) ::NewLayerInfo();
  80. }
  81. //----------------------------------------------------------------------------
  82. void * ALayer_Info::operator new (size_t)
  83. {
  84.  return ALayer_Info::NewLayerInfo();
  85. }
  86. //----------------------------------------------------------------------------
  87. void ALayer_Info::ThinLayerInfo ()
  88. {
  89.  ::ThinLayerInfo(this);
  90. }
  91. //----------------------------------------------------------------------------
  92. void ALayer_Info::UnlockLayerInfo ()
  93. {
  94.  ::UnlockLayerInfo(this);
  95. }
  96. //----------------------------------------------------------------------------
  97. void ALayer_Info::UnlockLayers ()
  98. {
  99.  ::UnlockLayers(this);
  100. }
  101. //----------------------------------------------------------------------------
  102. ALayer * ALayer_Info::WhichLayer (long x, long y)
  103. {
  104.  return (ALayer *) ::WhichLayer(this, x, y);
  105. }
  106.  
  107. #endif
  108.